# app/services/processor_service.py
from processors.seeding import SeedingProcessor
from processors.evaluation import EvaluationProcessor
from typing import Any

def create_processor(processor_type: str, volcano_client: Any, additional_info: str = ""):
    """创建指定类型的处理器"""
    if processor_type == "seeding":
        return SeedingProcessor(volcano_client, additional_info)
    elif processor_type == "evaluation":
        return EvaluationProcessor(volcano_client, additional_info)
    else:
        raise ValueError(f"未知的处理器类型: {processor_type}")